package com.lovo.bean;

import java.time.LocalDate;
import java.time.LocalDateTime;

//回帖实体类
public class CommentBean {
    //回帖编号
    private int id;
    //回帖用户
    private UserBean user;
    //回帖时间
    private LocalDateTime localDateTime=LocalDateTime.now();
    //回帖标题
    private String tittle;
    //回帖内容
    private String message;
    //主贴
    private PostBean postBean;

    public CommentBean() {
    }

    public CommentBean(Integer userId, String tittle, String message, Integer postId) {
        this.user.setUserId(userId);
        this.tittle = tittle;
        this.message = message;
        this.postBean.setId(postId);
    }

    public int getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public LocalDateTime getLocalDateTime() {
        return localDateTime;
    }

    public void setLocalDateTime(LocalDateTime localDateTime) {
        this.localDateTime = localDateTime;
    }

    public String getTittle() {
        return tittle;
    }

    public void setTittle(String tittle) {
        this.tittle = tittle;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public PostBean getPostBean() {
        return postBean;
    }

    public void setPostBean(PostBean postBean) {
        this.postBean = postBean;
    }
}
